<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>

<%
 String context = request.getContextPath();
%>

<style>
	tr th, td{
		border: 1px solid;
	}
</style>

<table style="border: 1px solid">
	<thead>
		<tr>
		<th><fmt:message key="person.name" /></th>
		<th><fmt:message key="person.surname"/></th>
		<th></th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="persona" items="${personas}" varStatus="status">
    	<tr>
    		<td>${persona.nombre}</td>
        	<td>${persona.apellido}</td>
        	<td><a href="<%= context%>/persona/ver/${persona.id}"   style="color:black;"><fmt:message key="common.view"/></a></td>
	    </tr>
		</c:forEach>
	</tbody>
</table>